<template>
  <div class="container">
    <CategoryVue title="美食">
      <img src="https://s3.ax1x.com/ 2021/01/16srJlq0.jpg" alt="" />
    </CategoryVue>
    <CategoryVue title="游戏">
      <ul>
        <li v-for="(g, index) in games" :key="index">{{ g }}</li>
      </ul>
    </CategoryVue>
    <CategoryVue title="电影">
      <video
        controls
        src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
      ></video>
    </CategoryVue>
  </div>
</template>

<script>
import CategoryVue from "./components/CategoryVue.vue";
export default {
  name: "App",
  components: { CategoryVue },
  data() {
    return {
      foods: ["火锅", "烤肉", "串串", "石斑鱼"],
      games: ["LOL", "CF", "PUBG", "王者荣耀"],
      films: [
        "《肖申克的救赎》",
        "《阿甘正传》",
        "《银河护卫队》",
        "《这个杀手不太冷静》",
      ],
    };
  },
};
</script>
<style>
.container {
  display: flex;
  justify-content: space-around;
}
</style>